//
//  DATManager.h
//  MapEdit
//
//  Created by Steven Canfield on 29/06/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "MPQKit/MPQKit.h"
#import "DATUnit.h"
#import "DATFlingy.h"
#import "DATSprite.h"
#import "DATImage.h"
#import "TBLFile.h"
#import "ColorPalette.h"
#import "Sprite.h"
#import "PCXFile.h"

@interface DATManager : NSObject {
	DATUnit				* _units;
	DATFlingy			* _flingy;
	DATSprite			* _sprites;
	DATImage			* _images;
	TBLFile				* _imagesTBL;
	MPQArchive			* _broodArchive;
	MPQArchive			* _regularArchive;
	NSMutableDictionary * _spriteCache;
	ColorPalette		* _palette;
	PCXFile				* _playerPalette;
}
+ (DATManager*)sharedManager;
+ (NSString *)starcraftFilesDirectory;

- (Sprite *)shadowForUnitIdentifier:(int)index;
- (NSString *)spritePathForUnitIdentifier:(int)index;
- (Sprite *)spriteForUnitIdentifier:(int)index;
- (Sprite *)spriteForPath:(NSString *)spritePath;

- (void)setUnits:(DATUnit *)units;
- (void)setFlingy:(DATFlingy *)flingy;
- (void)setSprites:(DATSprite *)sprites;
- (void)setImages:(DATImage *)images;
- (void)setImagesTBL:(TBLFile *)imagesTBL;
- (void)setBroodArchive:(MPQArchive *)archive;
- (void)setRegularArchive:(MPQArchive *)archive;
@end
